crPEGetNthTableSessionInfo

The crPEGetNthTableSessionInfo function gets the session information for a Microsoft Access table being used in your report. Many Microsoft Access database tables require that a session be opened before the information in the table can be used. Use crPEGetNthTableSessionInfo to obtain the session information (User ID, Password, and Session Handle) for a particular table.

Declare Function crPEGetNthTableSessionInfo Lib "crwrap32.dll" Alias "crvbPEGetNthTableSessionInfo" (ByVal printJob As Integer, ByVal TableN As Integer, ByRef UserID As String, ByRef SessionHandle As Long) As Integer

Parameters

printJob

Identifies the handle of the print job that uses the table for which you need to obtain the session information.

TableN

0 indexed table number indicating which table in the report you wish to obtain the session information for.

UserID

Specifies the user ID value needed for logging on to the system.

SessionHandle

Specifies the handle to the current Microsoft Access session.

Return Value

TRUE (1) if the call is successful, FALSE (0) if the call fails.

Remarks


Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com